"use strict"

import Ajax from "../libs/ajax";
import Constant from "../libs/constants";

const StrangerSwitchSetting = {
    getStrangerSwitch() {
        return Ajax.ajax({
            url: Constant.URL_GET_STRANGER_SWITCH,
            method: "get"
        }).then((res) => res.data)
    },
    setStrangerSwitch(_switch) {
        return Ajax.ajax({
            url: Constant.URL_SET_STRANGER_SWITCH,
            method: "post",
            data: {
                type: 7,
                value: _switch
            }
        }).then(res => res.data)
    }
}

export default StrangerSwitchSetting